class UrlMappings {

   static mappings = {
      /* "/$controller/$action?/$id?"{ constraints { // apply constraints here
       } } */

      "/" {controller = "Home"} //(view:"/index")
      "500"(view:'/error')

      // ***************************************************** //
      name enNutrientsOrganic: "/nutrients/organic" {
         controller = "Product"
         action = "list"
         category = "nutrients-organic"
      }

      name deNutrientsOrganic: "/duenger/organisch" {
         controller = "Product"
         action = "list"
         category = "nutrients-organic"
      }

      name skNutrientsOrganic: "/hnojivo/organickem" {
         controller = "Product"
         action = "list"
         category = "nutrients-organic"
      }
      // ***************************************************** //
      name enNutrientsHydroponic: "/nutrients/hydroponics" {
         controller = "Product"
         action = "list"
         category= "nutrients-hydro"
      }

      name deNutrientsHydroponic: "/duenger/hydroponisch" {
         controller = "Product"
         action = "list"
         category= "nutrients-hydro"
      }

      name skNutrientsHydroponic: "/hnojivo/hydroponika" {
         controller = "Product"
         action = "list"
         category= "nutrients-hydro"
      }
      // ***************************************************** //
      name enNutrientsCocos: "/nutrients/coco" {
         controller = "Product"
         action = "list"
         category= "coco"
      }

      name deNutrientsCocos: "/duenger/cocos" {
         controller = "Product"
         action = "list"
         category= "nutrients-hydro"
      }

      name skNutrientsCocos: "/hnojivo/kokos" {
         controller = "Product"
         action = "list"
         category= "nutrients-hydro"
      }
      // ***************************************************** //
      name enNutrientsSoil: "/nutrients/soil" {
         controller = "Product"
         action = "list"
         category= "coco"
      }

      name deNutrientsSoil: "/duenger/erde" {
         controller = "Product"
         action = "list"
         category= "nutrients-hydro"
      }

      name skNutrientsSoil: "/hnojivo/zemina" {
         controller = "Product"
         action = "list"
         category= "nutrients-hydro"
      }



      /*
       "/$category?/$subcategory?" {
       controller = "ProductList"
       action = "list"
       lang = "de"
       }
       "/en/$category?/$subcategory?" {
       controller = "ProductList"
       action = "list"
       lang = "en"
       }
       */

   }
}
